#include<iostream> #include<stdio.h> #include"stdafx.h"

来源:百度知道 编辑:UC知道 时间:2024/06/16 00:21:15
他们是啥关系?怎样更好的用?

#include <iostream.h> //数据流输入/输出
#include <stdio.h> //定义输入/输出函数
"stdafx.h"不是系统自带的库文件,功能不详

没啥关系,就是头文件,包含了些程序常用的函数,比如说输入输出等都在stdio.h中。只要你的程序需要用这些函数就必须添加头文件。

C++用#include<iostream.h>,C用#include<stdio.h>